package com.dubbo.framework.util;

import cn.hutool.core.convert.Convert;
import cn.hutool.setting.dialect.Props;
import com.dubbo.framework.URL;

/**
 * @author by Mr. Li 2021/4/30 14:22
 */
public class URLUtil {

    public static URL getUrl() {

        final Props props = new Props("application.properties");
        return new URL(Convert.toStr(props.get("ip.addr")), Convert.toInt(props.get("ip.port")));
    }
}
